package com.eugenezadyra.rsstotwitter.model;

import javax.persistence.*;
import java.util.List;

/**
 * @author eugene zadyra
 */
@Entity(name = "twitter")
public class Twitter extends AbstractEntity{
	@Column(name = "account_name")
	private String accountName;
	@OneToMany(mappedBy = "twitter")
	private List<TwitterFeedSubscription> twitterFeedSubscriptions;
	@OneToMany(mappedBy = "twitter")
	private List<TwitterMessageQueue> twitterMessageQueues;

	public String getAccountName() {
		return accountName;
	}

	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}

	public List<TwitterFeedSubscription> getTwitterFeedSubscriptions() {
		return twitterFeedSubscriptions;
	}

	public void setTwitterFeedSubscriptions(List<TwitterFeedSubscription> twitterFeedSubscriptions) {
		this.twitterFeedSubscriptions = twitterFeedSubscriptions;
	}

	public List<TwitterMessageQueue> getTwitterMessageQueues() {
		return twitterMessageQueues;
	}

	public void setTwitterMessageQueues(List<TwitterMessageQueue> twitterMessageQueues) {
		this.twitterMessageQueues = twitterMessageQueues;
	}
}
